﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Model.Base;

namespace Domain.Model.Repositories
{
    public abstract class AbstractRepository<T>
    {

        public abstract void Insert(T entity);
        public abstract T FromId(ObjectIdentity id);
        public abstract ObjectIdentity NextIdentity();
        public abstract void Update(T entity);
        public abstract void Remove(ObjectIdentity entity);
        public abstract List<T> All();
        public abstract int Count();
    }
}
